<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../axios.js"></script>
    <script src="../vue.js"></script>
</head>

<body>
    <script>
        // fetch('http://localhost/travel/textServlet', {
        //     method: 'post',
        //     body: 'message=,fetchtest&token=604d86002b4a8cb4a4a34368818de87f108a033c2cc20ae183a2bc49d07ec7c9&phone=&name=&qun=false',
        //     headers: {
        //         'Content-Type': 'application/x-www-form-urlencoded'
        //     }
        // }).then(data => {
        //     return data.text();
        // }).then(ret => {
        //     console.log(ret);
        // })
        axios.post('http://localhost/travel/jsonServlet', {
            uname: 'sadad',
            pwd: 'adada'
        }).then(ret => {
            console.log(ret.data);
        })
    </script>

</body>

</html>